package com.lin.missyou.repository;

import com.lin.missyou.model.Banner;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author gcq
 * @Create 2021-10-09
 */
public interface BannerRepository extends JpaRepository<Banner, Long> {
    Banner findOneById(Long id);
    Banner findOneByName(String name);
}